{dede:include file='head.htm' /}
<div class="topall8"><script src='/plus/ad_js.php?aid=3' language='javascript'></script> </div>
<div class="topall9">
<DIV class=warp style="OVERFLOW: hidden">
<DIV class=at_main style="OVERFLOW: hidden">
<DIV class=at_maintitle>
<H1>问题提问</H1>
<H2>（带*号为必填项）</H2></DIV>
<DIV class=at_mainbg>
<FORM name='ask' action='post.php?action=ask' method='post' onsubmit="return checkform(this,<?php echo $scores; ?>);">
<input type="hidden" name="scores" value="<?php echo $scores; ?>" />
<TABLE cellSpacing=0 cellPadding=0 width=800 border=0>
  <TBODY>
  <TR>
    <TD colSpan=2>
      <H1><STRONG>匿名游客 您好!</STRONG></H1></TD></TR>
  <TR>
    <TD class=at_title width=81>问题标题：</TD>
    <TD vAlign=center width=719 height=39>
	<INPUT class='at_piut'  name='title'></TD></TR>
  <TR>
    <TD class=at_title vAlign=top width=81>&nbsp;</TD>
    <TD height=24>控制在6到30个字之间。(提出问题后请关注答案，并在有效期20天内结束问题)</TD></TR>
  <TR>
    <TD class=at_title vAlign=top width=81>补充说明：</TD>
    <TD><TEXTAREA class='at_piut1' name='content' rows=8 cols=66></TEXTAREA></TD></TR>
  <TR>
    <TD width=81>&nbsp;</TD>
    <TD>问题说明越详细，回答也会越准确！</TD></TR>
  <TR>
    <TD class=at_title vAlign=top width=81>问题分类：</TD>
    <TD>
      <DIV class=postbox>
      <DL>
        <DT>问题分类 
        <DD>
		<SELECT class=at_piut2 id=ClassLevel1 style="WIDTH: 160px" size=8 name='ClassLevel1'></SELECT> 
		<STRONG class=jiantou>→</STRONG> 
		<SELECT class=at_piut2 id=ClassLevel2 style="WIDTH: 120px" size=8 name='ClassLevel2'></SELECT> 
        <DD>如果您的问题无法归入任何子分类，您可以只选择一级分类 。<BR>请选择正确的分类，以使问题尽快得到解答。 </DD></DL>
		    <dl>
			<?php if($uid){?>
      <dt>悬赏分：<select name="reward">
          <option value=0>0</option>
          <option value=5>5</option>
          <option value=10>10</option>
          <option value=15>15</option>
          <option value=20>20</option>
          <option value=30>30</option>
          <option value=50>50</option>
          <option value=80>80</option>
          <option value=100>100</option>
        </select></dt>
   
      <dd class=""><span class="jifen2">您当前的积分是 <strong><?php echo $scores; ?></strong> 分</span></dd>
    </dl>
    <dl>
      <dt>匿名设定：
        <input name="anonymous" type="checkbox" value="1" class="nmsd" />
        您可以对问题设定匿名，但您需要付出积分10分。 </dt>
      
    </dl>
    <?php } ?>
		
		</DIV>
      <DIV class=floatclear><!--清除浮动--></DIV><!--页面底部--></TD></TR>
  <TR>
    <TD width=81>&nbsp;</TD>
    <TD><INPUT type=image height=41 width=121 
      src="template/default/images/questionsure.jpg"></TD></TR>
  <TR>
    <TD width=81>&nbsp;</TD>
    <TD>&nbsp;</TD></TR></TBODY></TABLE></FORM></DIV></DIV></DIV>
 <SCRIPT language=javascript>
var g_ClassLevel1;
var g_ClassLevel2;

<?php
echo $tids."\n".$tid2s;
?>
function FillClassLevel1(ClassLevel1)
{
    for(i=0; i<class_level_1.length; i++) {
        ClassLevel1.options[i] = new Option(class_level_1[i][1], class_level_1[i][0]);
    }
    ClassLevel1.length = i;
}

function FillClassLevel2(ClassLevel2, class_level_1_id)
{
    ClassLevel2.options[0] = new Option("不选", "");
     count = 1;
    for(i=0; i<class_level_2.length; i++) {
        if(class_level_2[i][0].toString() == class_level_1_id) {
            ClassLevel2.options[count] = new Option(class_level_2[i][2], class_level_2[i][1]);
            count = count+1;
        }
    }
    ClassLevel2.options[0].selected = true;
    ClassLevel2.length = count;
}

function ClassLevel1_onchange()
{
	FillClassLevel2(g_ClassLevel2, g_ClassLevel1.value);
}

function InitClassLevelList(ClassLevel1, ClassLevel2)
{
	g_ClassLevel1=ClassLevel1;
    g_ClassLevel2=ClassLevel2;

    g_ClassLevel1.onchange = Function("ClassLevel1_onchange();");
    FillClassLevel1(g_ClassLevel1);

	var height = (g_ClassLevel1.options.length * 15 + (!(window.attachEvent && !window.opera) ? 60 : 40)) + 'px';
	g_ClassLevel1.style.height=height;
	g_ClassLevel2.style.height=height;
    ClassLevel1_onchange();
}

InitClassLevelList(document.ask.ClassLevel1, document.ask.ClassLevel2);

</SCRIPT>  
</div>
<div class="topall">
 {dede:include file='footer.htm' /}

</div>
</body>
</html>
